
@if (count($errors))
    <div class="alert alert-danger">
    <ul>

        {{-- 获得全部错误信息的函数 --}}
        @foreach ($errors->all() as $item)
          <li>{{ $item }}</li>  
        @endforeach
        
    </ul>
</div>
@endif
